<%@ include file="/WEB-INF/jsp/includes/include.jsp" %>
<!-- BEGIN NOTICE BOARD -->
<h2 id="noticeBoardTitle" class="sectionHeader">Noticeboard:</h2>

<div id="noticeboard">

	<!-- BEGIN NOTICES -->
	<div id="notices">
		
		<c:forEach items="${entity.noticeBoard.activeNotices}" var="notice">

		<c:url scope="page" value="" var="expireNoticeURL">
			<c:param name="id" value="${notice.id}"/>
		</c:url>

		<!-- BEGIN NOTICE -->
		<div class="notice">
			
			<div class="noticeTitle">
				${notice.title}
			</div>
			
			<div class="noticeText">
				${notice.text}
			</div>

			

			<!-- BEGIN POSTER INFO, DATE-TIME -->
			<div class="posterAndDate">
				<c:url scope="page" value="/user/profile.html" var="userProfileURL">
					<c:param name="id" value="${message.poster.id}"/>
				</c:url>
				Posted by
				<a href="${userProfileURL}">
					<span class="postedBy">${message.poster.name}</span>
				</a>
				<span class="postedOn">
					on 
					<joda:format value="${message.dateCreated.date}" style="S-" /> at 
					<joda:format value="${message.dateCreated.date}" style="-M" />
				</span>
			</div><!-- .posterAndDate -->
			<!-- END POSTER INFO, DATE-TIME -->

			<!-- BEGIN POSTER IMAGE -->
			<div class="msgPosterImg">
				<c:url scope="page" value="/getImage.do" var="imgsrc">
					<c:param name="imgsrc" value="${message.poster.imgSrc}"/>
				</c:url>
				<img src="${imgsrc}" width="60" alt="${message.poster.name}" class="msgPosterImg"/>
			</div><!-- msgPosterImg -->
			<!-- END POSTER IMAGE -->

			<!-- END POSTED MESSAGE -->
			<hr/>
		</div><!-- .msgDetails -->
		<!-- END NOTICE -->

		</c:forEach>
	</div> <!-- #notices -->
</div><!-- #noticeboard -->		
